#encoding:utf-8

class Item(object):
    def __init__(self, name='',hp=0,mp=0,condition=0,description=''):
        self.name = name
        self.hp = hp
        self.mp = mp
        self.condition = condition
        self.description = description
        self.price = self.hp*2 + self.mp*2 + condition*200
        
def poison(self, harm=10):
    self.hp = self.hp - harm
    return harm

    
poison = type('Condition',(object,),{'poison':poison})